const {
    request
} = require("../index");

module.exports = {
    accessInfo(data) {
        return request('/miniprogram/user/accessInfo', 'get', data, 1)
    },
    getHealthInfo(data) {
        return request('/miniprogram/user/healthInfo', 'get', data, 1)
    },
    addHealthInfo(data) {
        return request('/miniprogram/user/healthInfo', 'post', data, 1)
    },
    updateHealthInfo(data) {
        return request('/miniprogram/user/healthInfo', 'put', data, 1)
    },
    getBaseInfo(data) {
        return request('/miniprogram/user/healthInfo', 'get', data, 1)
    },
    login(data) {
        return request('/miniprogram/auth/wxLogin', 'post', data, 1)
    },
    getHealthScan(data){
        return request('/miniprogram/user/healthQRCode', 'get', data, 1)
    },
    isVaild(data){
        return request("//miniprogram/user/isRoleVaild", 'get', data, 1)
    }
}